#ifndef __UDM_H
#define __UDM_H

#include "main.h"
#include "tim.h"

static int upEdge = 0;
static int downEdge = 0;
extern float udm_distance;

void udm_init(void);		//超声波定时器初始化
void measureDistance(void);		//测距
#endif
